package com.yun.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName("phone_info")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PhoneInfo {
    //{"code":200,
    // "haoduan":"1303004",
    // "shengfen":"黑龙江",
    // "chengshi":"哈尔滨",
    // "fuwushang":"中国联通",
    // "quhao":"0451",
    // "qhdm":"230100",
    // "youbian":"150000"}
    @TableId(type = IdType.AUTO)
    private Long id;//数据库存储Id
    @TableField(exist = false)
    private String code;//查询状态码
    private String haoduan;//号段
    private String shengfen;//省份
    private String chengshi;//城市
    private String fuwushang;//地方运营商
    private String quhao;//区号
    private String qhdm;//区划代码
    private String youbian;//邮编
    private String telp;//手机号

    public PhoneInfo(Long id, String code, String haoduan, String shengfen, String chengshi, String fuwushang, String quhao, String qhdm, String youbian) {
        this.id = id;
        this.code = code;
        this.haoduan = haoduan;
        this.shengfen = shengfen;
        this.chengshi = chengshi;
        this.fuwushang = fuwushang;
        this.quhao = quhao;
        this.qhdm = qhdm;
        this.youbian = youbian;
    }
}
